package com.sykj.cloud.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sykj.cloud.common.core.annotation.Excel;
import com.sykj.cloud.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户日志对象 log_error
 *
 * @author mr.will
 * @date 2021-03-31
 */
public class LogError extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String guid;

    /** 系统定义id */
    @Excel(name = "系统定义id")
    private String systemDefineId;

    /** 应用id */
    @Excel(name = "应用id")
    private String applicationId;

    /** 站点id */
    @Excel(name = "站点id")
    private String siteId;

    /** 会员id */
    @Excel(name = "会员id")
    private String memberId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 数据对象类型Id */
    @Excel(name = "数据对象类型Id")
    private String objectDefineId;

    /** 数据对象名称 */
    @Excel(name = "数据对象名称")
    private String objectName;

    /** 数据对象ID */
    @Excel(name = "数据对象ID")
    private String objectId;

    /** 登录名称 */
    @Excel(name = "登录名称")
    private String loginName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date operateTime;

    /** 操作地点 */
    @Excel(name = "操作地点")
    private String operateLocation;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 操作系统类型 */
    @Excel(name = "操作系统类型")
    private String deviceOs;

    /** 浏览器类型 */
    @Excel(name = "浏览器类型")
    private String browserType;

    /** 错误类型 */
    @Excel(name = "错误类型")
    private Integer errorType;

    /** 浏览器代理信息 */
    @Excel(name = "浏览器代理信息")
    private String userAgent;

    /** 方法名称 */
    @Excel(name = "方法名称")
    private String method;

    /** 请求方式 */
    @Excel(name = "请求方式")
    private String requestMethod;

    /** 请求URL */
    @Excel(name = "请求URL")
    private String operUrl;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ipAddress;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String operateParam;

    /** 返回参数 */
    @Excel(name = "返回参数")
    private String jsonResult;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;


    public LogError() {
    }

    public LogError(String guid, String systemDefineId, String applicationId, String siteId, String memberId, String userId, String objectDefineId, String objectName, String objectId, String loginName, Date operateTime, String operateLocation, String name, String deviceId, String deviceType, String deviceOs, String browserType, Integer errorType, String userAgent, String method, String requestMethod, String operUrl, String ipAddress, String operateParam, String jsonResult, String description, String deleteBy, Date deleteTime, Integer deleted) {
        this.guid = guid;
        this.systemDefineId = systemDefineId;
        this.applicationId = applicationId;
        this.siteId = siteId;
        this.memberId = memberId;
        this.userId = userId;
        this.objectDefineId = objectDefineId;
        this.objectName = objectName;
        this.objectId = objectId;
        this.loginName = loginName;
        this.operateTime = operateTime;
        this.operateLocation = operateLocation;
        this.name = name;
        this.deviceId = deviceId;
        this.deviceType = deviceType;
        this.deviceOs = deviceOs;
        this.browserType = browserType;
        this.errorType = errorType;
        this.userAgent = userAgent;
        this.method = method;
        this.requestMethod = requestMethod;
        this.operUrl = operUrl;
        this.ipAddress = ipAddress;
        this.operateParam = operateParam;
        this.jsonResult = jsonResult;
        this.description = description;
        this.deleteBy = deleteBy;
        this.deleteTime = deleteTime;
        this.deleted = deleted;
    }

    public LogError(String loginName, String name, Integer errorType, String description) {
        this.loginName = loginName;
        this.name = name;
        this.errorType = errorType;
        this.description = description;
    }

    public LogError(String loginName, Integer errorType, String description) {
        this.loginName = loginName;
        this.errorType = errorType;
        this.description = description;
    }

    public LogError(String loginName, Integer errorType) {
        this.loginName = loginName;
        this.errorType = errorType;
    }


    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }
    public void setSystemDefineId(String systemDefineId)
    {
        this.systemDefineId = systemDefineId;
    }

    public String getSystemDefineId()
    {
        return systemDefineId;
    }
    public void setApplicationId(String applicationId)
    {
        this.applicationId = applicationId;
    }

    public String getApplicationId()
    {
        return applicationId;
    }
    public void setSiteId(String siteId)
    {
        this.siteId = siteId;
    }

    public String getSiteId()
    {
        return siteId;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setObjectDefineId(String objectDefineId)
    {
        this.objectDefineId = objectDefineId;
    }

    public String getObjectDefineId()
    {
        return objectDefineId;
    }
    public void setObjectName(String objectName)
    {
        this.objectName = objectName;
    }

    public String getObjectName()
    {
        return objectName;
    }
    public void setObjectId(String objectId)
    {
        this.objectId = objectId;
    }

    public String getObjectId()
    {
        return objectId;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }
    public void setOperateLocation(String operateLocation)
    {
        this.operateLocation = operateLocation;
    }

    public String getOperateLocation()
    {
        return operateLocation;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceOs(String deviceOs)
    {
        this.deviceOs = deviceOs;
    }

    public String getDeviceOs()
    {
        return deviceOs;
    }
    public void setBrowserType(String browserType)
    {
        this.browserType = browserType;
    }

    public String getBrowserType()
    {
        return browserType;
    }
    public void setErrorType(Integer errorType)
    {
        this.errorType = errorType;
    }

    public Integer getErrorType()
    {
        return errorType;
    }
    public void setUserAgent(String userAgent)
    {
        this.userAgent = userAgent;
    }

    public String getUserAgent()
    {
        return userAgent;
    }
    public void setMethod(String method)
    {
        this.method = method;
    }

    public String getMethod()
    {
        return method;
    }
    public void setRequestMethod(String requestMethod)
    {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod()
    {
        return requestMethod;
    }
    public void setOperUrl(String operUrl)
    {
        this.operUrl = operUrl;
    }

    public String getOperUrl()
    {
        return operUrl;
    }
    public void setIpAddress(String ipAddress)
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress()
    {
        return ipAddress;
    }
    public void setOperateParam(String operateParam)
    {
        this.operateParam = operateParam;
    }

    public String getOperateParam()
    {
        return operateParam;
    }
    public void setJsonResult(String jsonResult)
    {
        this.jsonResult = jsonResult;
    }

    public String getJsonResult()
    {
        return jsonResult;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("systemDefineId", getSystemDefineId())
            .append("applicationId", getApplicationId())
            .append("siteId", getSiteId())
            .append("memberId", getMemberId())
            .append("userId", getUserId())
            .append("objectDefineId", getObjectDefineId())
            .append("objectName", getObjectName())
            .append("objectId", getObjectId())
            .append("loginName", getLoginName())
            .append("operateTime", getOperateTime())
            .append("operateLocation", getOperateLocation())
            .append("name", getName())
            .append("deviceId", getDeviceId())
            .append("deviceType", getDeviceType())
            .append("deviceOs", getDeviceOs())
            .append("browserType", getBrowserType())
            .append("errorType", getErrorType())
            .append("userAgent", getUserAgent())
            .append("method", getMethod())
            .append("requestMethod", getRequestMethod())
            .append("operUrl", getOperUrl())
            .append("ipAddress", getIpAddress())
            .append("operateParam", getOperateParam())
            .append("jsonResult", getJsonResult())
            .append("description", getDescription())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
